package com.shanzmoo.db.product.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 商品spu
 * </p>
 *
 * @author Xueqz
 * @since 2020-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("商品列表VO")
public class ProductVO {

    @ApiModelProperty("商品主键")
    private Integer id;

    @ApiModelProperty("商品code")
    private String spu;

    @ApiModelProperty("商品名")
    private String name;

    @ApiModelProperty("商品三级分类id")
    private String categoryId;

    @ApiModelProperty("商品分类id组")
    private String categoryIds;

    @ApiModelProperty("商品分类1级id")
    private String categoryName1;

    @ApiModelProperty("商品分类2级id")
    private String categoryName2;

    @ApiModelProperty("商品分类3级id")
    private String categoryName3;

    @ApiModelProperty("商品品牌id")
    private String brandId;

    @ApiModelProperty("商品品牌name")
    private String brandName;

    @ApiModelProperty("商品类型")
    private String type;

    @ApiModelProperty("商品单位id")
    private String unitId;

    @ApiModelProperty("商品单位名")
    private String unitName;

    @ApiModelProperty("销售渠道")
    private String channel;

    @ApiModelProperty("是否上架")
    private String shelves;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;

}
